package com.github.wxiaoqi.security.admin.mapper;

import com.github.wxiaoqi.security.admin.entity.Element;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author dzl
 */
public interface ElementMapper extends Mapper<Element> {
    /**
     *selectAuthorityElementByUserId
     * @param userId
     * @return
     */
    public List<Element> selectAuthorityElementByUserId(@Param("userId")String userId);

    /**
     *selectAuthorityMenuElementByUserId
     * @param userId
     * @param menuId
     * @return
     */
    public List<Element> selectAuthorityMenuElementByUserId(@Param("userId")String userId,@Param("menuId")String menuId);

    /**
     *selectAuthorityElementByClientId
     * @param clientId
     * @return
     */
    public List<Element> selectAuthorityElementByClientId(@Param("clientId")String clientId);

    /**
     * selectAllElementPermissions
     * @return
     */
    public List<Element> selectAllElementPermissions();
}